package xin.infinite.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.text.SimpleDateFormat;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("note")
public class Note implements Serializable {

    /**帖子的id*/
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**标题*/
    private String title;
    /**创建时间*/
    private SimpleDateFormat createdTime;
    /**内容*/
    private  Integer content;
    /**ID帖子楼次*/
    private Integer rank;
    /**主题*/
    private Integer  topic_id;
    /**用户ID*/
    private Integer user_id;
    /**状态码*/
    private Integer status;
}
